/*
 * Step.java
 *
 * Copyright(c) 2010 - Kimnach
 * See main.Main.java for full copyright notice.
 *
 */

package sequence;

/**
 *
 * @author dkimnach
 */
public class Step {
    
    private String name;    // string representation of this step (key)
    private String next;    // string key of next Step
    private String title;   // string representation of this step (display)
    private int order;      // position order

    /**
     * Constructs an empty <code>Step</code>
     */
    public Step() {}

    /**
     * Constructs a <code>Step</code>
     * @param name key
     * @param next next step key
     * @param title display title
     */
    public Step(String name, String next, String title, int order) {
        this.name = name;
        this.next = next;
        this.title = title;
        this.order = order;
    }

    /**
     * Get next step
     * @return next step key
     */
    public String next() {
        return this.next;
    }

    /**
     * Set the next step
     * @param next
     */
    public void setNext(String next) {
        this.next = next;
    }

    /**
     * Get the key
     * @return key
     */
    public String getName() {
        return this.name;
    }

    /**
     * Set the key
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Get the display title
     * @return title
     */
    public String getTitle() {
        return this.title;
    }

    /**
     * Set the display title
     * @param title
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * Get the position in sequence number
     * @return order number
     */
    public int getOrder() {
        return order;
    }

    /**
     * Set the position in sequence number
     * @param order
     */
    public void setOrder(int order) {
        this.order = order;
    }
}
